package stats;

/**
 * A class that can record how many times of an event has happened.
 * @author Yin
 *
 */
public class AmountStats extends AbstractNumberStats
{
	
	public AmountStats()
	{
		super();
	}
	
	@Override
	public double update(String eventName) 
	{
		if (!isEventExist(eventName))
			addStat(0.0, PLUS, 1.0, eventName);
		return super.update(eventName);
	}
}
